package com.wsq.roomdemo.room.dao;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;

import com.wsq.roomdemo.room.entity.VoiceEntity;

import java.util.List;

/**
 * Date:2021/8/31
 * Time:10:50
 * author:wushengqi
 */
@Dao
public interface VoiceDao {
    @Query("select * from voiceentity")
    List<VoiceEntity> getAll();

    @Insert
    void insert(VoiceEntity voiceEntity);

    @Delete
    void delete(VoiceEntity voiceEntity);
}
